package com.grape.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 类描述： ImMessage类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Data
@NoArgsConstructor
public class ImNoticeDTO {
    /** 发送用户的id */
    private String userId;
    /** 发送用户的消息 */
    private String message;
    /** 通知用户的类型（系统通知...） */
    private String type;
    /** 通知用户的类型（上方还是下方） */
    private String positionType;
    /** 发送用户的名称 */
    private String username;
    /** 发送用户的头像 */
    private String userAvatar;
    /** 通知时间 */
    private String noticeTime;
    /** new_message时此属性为新消息json数据 */
    private String data;

    public ImNoticeDTO(String userId, String message, String type, String username, String userAvatar, String noticeTime) {
        this.userId = userId;
        this.message = message;
        this.type = type;
        this.username = username;
        this.userAvatar = userAvatar;
        this.noticeTime = noticeTime;
    }

    public ImNoticeDTO(String userId, String message, String type, String username, String userAvatar, String noticeTime, String data) {
        this.userId = userId;
        this.message = message;
        this.type = type;
        this.username = username;
        this.userAvatar = userAvatar;
        this.noticeTime = noticeTime;
        this.data = data;
    }
}
